<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1{
            width: 200px;
            height: 200px;
            border: 1px solid black;
            background-color: gold;
        }
        .div2{
            width: 120px;
            height: 50px;
            margin: 75px 40px 75px 40px;
            background-color: green;
        }
        .div3{
            width: 120px;
            height: 50px;
            background-color: gold;
            padding: 75px 40px;
        }
        .div4{
            width: 120px;
            height: 50px;
            background-color: green;
        }
    </style>
</head>
<body>
    <div class="div1">
        <div class="div2"></div>
    </div>
    <div class="div3">
        <div class="div4"></div>
    </div>
</body>
</html>